#include <AttributeProperties.h>
Inheritance diagram for VGServer::AttributePropertiesList:
Public Member Functions | |
void | appendBinaryFormat (class ByteOutBuffer &bob) const |
concatenate the binary representation of this attribute list to the buffer | |
void | calcAttributeLookups () |
this does the actual pre-calculation of the attribute offsets, and saves the attribute names in the attrname_map; | |
void | clear () |
override vector::clear() | |
template<typename AttributeBlob> | |
AttributeBlob | createBlankAttributeBlob () const |
create a blank AttributeBlob containing the default bitfield and initialized varying attributes. | |
int | lookupAttributeName (const std::string &s) const |
looks the attribute id of an attribute name up, returns -1 if it could not be found. | |
Static Public Member Functions | |
static unsigned int | calcDefaultBytes (unsigned int n) |
calculate default bytes needed to store n default bits | |
Public Attributes | |
unsigned int | defbits |
the number of default bits used in the attribute list. | |
unsigned int | defbytes |
number of default bytes used in the attribute list. |
It extends the functionality by pre-calculating the necessary offsets into the AttributeBlob and has special values like how many default bytes the attribute list needs.
Definition at line 81 of file AttributeProperties.h.
void VGServer::AttributePropertiesList::appendBinaryFormat | ( | class ByteOutBuffer & | bob | ) | const |
concatenate the binary representation of this attribute list to the buffer
Definition at line 127 of file AttributeProperties.cc.
References defbytes.
Referenced by VGServer::GraphProperties::appendBinaryFormat().
void VGServer::AttributePropertiesList::calcAttributeLookups | ( | ) |
this does the actual pre-calculation of the attribute offsets, and saves the attribute names in the attrname_map;
Definition at line 20 of file AttributeProperties.cc.
References VGServer::ATTRTYPE_BOOL, calcDefaultBytes(), defbits, and defbytes.
Referenced by VGServer::GraphProperties::calcAttributeLookups().
unsigned int VGServer::AttributePropertiesList::calcDefaultBytes | ( | unsigned int | n | ) | [static] |
calculate default bytes needed to store n default bits
Definition at line 14 of file AttributeProperties.cc.
Referenced by calcAttributeLookups().
void VGServer::AttributePropertiesList::clear | ( | ) | [inline] |
override vector::clear()
Reimplemented in VGServer::AttributeSelectorList.
Definition at line 96 of file AttributeProperties.h.
References defbits, and defbytes.
Referenced by VGServer::GraphProperties::clear(), and VGServer::AttributeSelectorList::clear().
template AttributeEdgeTinyBlob VGServer::AttributePropertiesList::createBlankAttributeBlob< AttributeEdgeTinyBlob > | ( | ) | const |
create a blank AttributeBlob containing the default bitfield and initialized varying attributes.
Definition at line 170 of file AttributeProperties.cc.
References VGServer::ATTRTYPE_BOOL, defbits, defbytes, VGServer::TpAttributeBlob< AllocPolicy >::putAnyType(), VGServer::TpAttributeBlob< AllocPolicy >::putBool(), and VGServer::TpAttributeBlob< AllocPolicy >::zero().
Referenced by VGServer::Changelist::addEdge(), and VGServer::Changelist::addVertex().
int VGServer::AttributePropertiesList::lookupAttributeName | ( | const std::string & | s | ) | const |
looks the attribute id of an attribute name up, returns -1 if it could not be found.
Definition at line 89 of file AttributeProperties.cc.
unsigned int VGServer::AttributePropertiesList::defbits |
the number of default bits used in the attribute list.
Definition at line 85 of file AttributeProperties.h.
Referenced by calcAttributeLookups(), clear(), createBlankAttributeBlob(), and VGServer::TpAttributeBlob< AllocPolicy >::getAttrChainLength().
unsigned int VGServer::AttributePropertiesList::defbytes |
number of default bytes used in the attribute list.
Definition at line 88 of file AttributeProperties.h.
Referenced by VGServer::GraphLoader::addEdge(), VGServer::GraphLoader::addVertex(), appendBinaryFormat(), calcAttributeLookups(), clear(), createBlankAttributeBlob(), VGServer::TpAttributeBlob< AllocPolicy >::getAttrChainLength(), VGServer::TpAttributeBlob< AllocPolicy >::getAttrChainValue(), VGServer::AttributeSelectorList::processEdgeAttributeBlob(), VGServer::AttributeSelectorList::processVertexAttributeBlob(), and VGServer::TpAttributeBlob< AllocPolicy >::putAttrChainValue().