![]() |
Shapeworks Studio
2.1
Shape analysis software suite
|
Public Types | |
typedef _Scalar | Scalar |
typedef _Index | Index |
Public Member Functions | |
CompressedStorage (size_t size) | |
CompressedStorage (const CompressedStorage &other) | |
CompressedStorage & | operator= (const CompressedStorage &other) |
void | swap (CompressedStorage &other) |
void | reserve (size_t size) |
void | squeeze () |
void | resize (size_t size, float reserveSizeFactor=0) |
void | append (const Scalar &v, Index i) |
size_t | size () const |
size_t | allocatedSize () const |
void | clear () |
Scalar & | value (size_t i) |
const Scalar & | value (size_t i) const |
Index & | index (size_t i) |
const Index & | index (size_t i) const |
Index | searchLowerIndex (Index key) const |
Index | searchLowerIndex (size_t start, size_t end, Index key) const |
Scalar | at (Index key, const Scalar &defaultValue=Scalar(0)) const |
Scalar | atInRange (size_t start, size_t end, Index key, const Scalar &defaultValue=Scalar(0)) const |
Scalar & | atWithInsertion (Index key, const Scalar &defaultValue=Scalar(0)) |
void | prune (const Scalar &reference, const RealScalar &epsilon=NumTraits< RealScalar >::dummy_precision()) |
Static Public Member Functions | |
static CompressedStorage | Map (Index *indices, Scalar *values, size_t size) |
Protected Types | |
typedef NumTraits< Scalar >::Real | RealScalar |
Protected Member Functions | |
void | reallocate (size_t size) |
Protected Attributes | |
Scalar * | m_values |
Index * | m_indices |
size_t | m_size |
size_t | m_allocatedSize |
Definition at line 22 of file CompressedStorage.h.
|
inline |
Definition at line 142 of file CompressedStorage.h.
|
inline |
Like at(), but the search is performed in the range [start,end)
Definition at line 155 of file CompressedStorage.h.
|
inline |
Definition at line 170 of file CompressedStorage.h.
|
inline |
k
such that for all j
in [0,k) index[j
]<key Definition at line 121 of file CompressedStorage.h.
|
inline |
k
in [start,end) such that for all j
in [start,k) index[j
]<key Definition at line 127 of file CompressedStorage.h.