C++ API Reference
|
Index type which uses a String for the index mapping. More...
#include <adskDataIndexString.h>
Public Member Functions | |
IndexString (const std::string &stringIndex) | |
Conversion constructor. More... | |
IndexString (const IndexString &rhs) | |
Copy constructor, simplest level. More... | |
~IndexString () override | |
Default destructor, nothing to do. | |
virtual IndexString & | operator= (const IndexString &rhs) |
Class assignment operator. More... | |
virtual IndexString & | operator= (const std::string &rhs) |
IndexCount assignment operator. More... | |
std::string | indexString () const |
Get the string being used as an index. More... | |
std::string | asString () const override |
Get the IndexString in string form. More... | |
bool | supportsDenseMode () const override |
Notifies users that this index type cannot be packed densely. More... | |
IndexCount | denseSpaceBetween (const IndexType &rhs) const override |
Returns 0 to indicate failure since strings cannot be densely packed. More... | |
bool | operator== (const IndexType &rhs) const override |
Equality operator, checks if this IndexString is the same as another Objects of different types are defined as not equal. More... | |
bool | operator!= (const IndexType &rhs) const override |
Inequality operator, checks if this IndexString is not the same as another Objects of different types are defined as not equal. More... | |
bool | operator< (const IndexType &rhs) const override |
Less-than operator, checks if this IndexString is less than another Operator sorts by typeid if the object passed in is not an IndexString. More... | |
bool | operator<= (const IndexType &rhs) const override |
Less-or-equal operator, checks if this IndexString is <= another Operator sorts by typeid if the object passed in is not an IndexString. More... | |
bool | operator> (const IndexType &rhs) const override |
Greater-than operator, checks if this IndexString is greater than another Operator sorts by typeid if the object passed in is not an IndexString. More... | |
bool | operator>= (const IndexType &rhs) const override |
Greater-or-equal operator, checks if this IndexString is >= another Operator sorts by typeid if the object passed in is not an IndexString. More... | |
virtual bool | operator== (const IndexString &rhs) const |
Equality operator, checks if this IndexString is the same as another. More... | |
virtual bool | operator!= (const IndexString &rhs) const |
Inequality operator, checks if this IndexString is not the same as another. More... | |
virtual bool | operator< (const IndexString &rhs) const |
Less-than operator, checks if this IndexString is less than another. More... | |
virtual bool | operator<= (const IndexString &rhs) const |
Less-or-equal operator, checks if this IndexString is <= another. More... | |
virtual bool | operator> (const IndexString &rhs) const |
Greater-than operator, checks if this IndexString is greater than another. More... | |
virtual bool | operator>= (const IndexString &rhs) const |
Greater-or-equal operator, checks if this IndexString is >= another. More... | |
Public Member Functions inherited from IndexType | |
IndexType (const IndexType &rhs) | |
Copy constructor, simplest level. More... | |
Static Public Member Functions | |
static bool | Debug (const IndexString *me, adsk::Debug::Print &request) |
Answer a Print request for an IndexString object. More... | |
static bool | Debug (const IndexString *me, adsk::Debug::Footprint &request) |
Answer a footprint request for an IndexString object. More... | |
Static Public Member Functions inherited from RefCounted | |
static bool | Debug (const RefCounted *me, Debug::Print &request) |
Answer a Print request for a RefCounted object. More... | |
static bool | Debug (const RefCounted *me, Debug::Footprint &request) |
Answer a footprint request for a RefCounted object. More... | |
Protected Member Functions | |
IndexString () | |
Default constructor, sets to empty string. | |
Protected Member Functions inherited from IndexType | |
~IndexType () override | |
Default destructor, nothing to do. | |
IndexType () | |
Default constructor, should never be used. | |
Protected Member Functions inherited from RefCounted | |
RefCounted () | |
RefCounted default ctor. | |
RefCounted (const RefCounted &) | |
RefCounted copy ctor. | |
virtual | ~RefCounted () |
RefCounted dtor. | |
Static Protected Attributes | |
static std::string | myTypeName = "string" |
Name used to identify this type. | |
static IndexRegistration | myRegistration |
Name used to identify this type. | |
Friends | |
class | CRTP_IndexType< IndexString > |
String index used for mapping. | |
Index type which uses a String for the index mapping.
This is a more general type of indexing that can only be used in mapping mode since it doesn't make sense to define "all strings between two strings".
IndexString | ( | const std::string & | stringIndex | ) |
Conversion constructor.
[in] | stringIndex | The string used as an index |
IndexString | ( | const IndexString & | rhs | ) |
Copy constructor, simplest level.
[in] | rhs | IndexString data to be copied |
|
virtual |
Class assignment operator.
[in] | rhs | IndexString data to be copied |
|
virtual |
IndexCount assignment operator.
[in] | rhs | String to be used as an index |
std::string indexString | ( | ) | const |
Get the string being used as an index.
|
overridevirtual |
Get the IndexString in string form.
In the case of this index the string version of the string index is simply itself. This is a duplicate of the indexString() method, but it's virtual and accessible through the base class for generic serialization functions.
Implements IndexType.
|
overridevirtual |
Notifies users that this index type cannot be packed densely.
Implements IndexType.
|
overridevirtual |
Returns 0 to indicate failure since strings cannot be densely packed.
[in] | rhs | The index from which the density is to be calculated |
Implements IndexType.
|
overridevirtual |
Equality operator, checks if this IndexString is the same as another Objects of different types are defined as not equal.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
overridevirtual |
Inequality operator, checks if this IndexString is not the same as another Objects of different types are defined as not equal.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
overridevirtual |
Less-than operator, checks if this IndexString is less than another Operator sorts by typeid if the object passed in is not an IndexString.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
overridevirtual |
Less-or-equal operator, checks if this IndexString is <= another Operator sorts by typeid if the object passed in is not an IndexString.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
overridevirtual |
Greater-than operator, checks if this IndexString is greater than another Operator sorts by typeid if the object passed in is not an IndexString.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
overridevirtual |
Greater-or-equal operator, checks if this IndexString is >= another Operator sorts by typeid if the object passed in is not an IndexString.
[in] | rhs | IndexString to be compared |
Implements IndexType.
|
virtual |
Equality operator, checks if this IndexString is the same as another.
[in] | rhs | IndexString to be compared |
|
virtual |
Inequality operator, checks if this IndexString is not the same as another.
[in] | rhs | IndexString to be compared |
|
virtual |
Less-than operator, checks if this IndexString is less than another.
[in] | rhs | IndexString to be compared |
|
virtual |
Less-or-equal operator, checks if this IndexString is <= another.
[in] | rhs | IndexString to be compared |
|
virtual |
Greater-than operator, checks if this IndexString is greater than another.
[in] | rhs | IndexString to be compared |
|
virtual |
Greater-or-equal operator, checks if this IndexString is >= another.
[in] | rhs | IndexString to be compared |
|
static |
Answer a Print request for an IndexString object.
Use the request object to dump all information on this IndexString,
[in] | me | Object to debug, NULL means debug static information |
[out] | request | Print request object |
|
static |
Answer a footprint request for an IndexString object.
Populate the Footprint request with the information on all data stored within this object.
[in] | me | Object to debug, NULL means debug static information |
[out] | request | Footprint object to populate |