libosmscout  0.1
osmscout::FeatureInstance Class Referencefinal

An instantiation of a feature for a certain type. More...

#include <TypeFeature.h>

Public Member Functions

 FeatureInstance ()
 Just to make the compiler happy :-/. More...
 
 FeatureInstance (const FeatureRef &feature, const TypeInfo *type, size_t featureBit, size_t index, size_t offset)
 
FeatureRef GetFeature () const
 Return the feature itself. More...
 
size_t GetFeatureBit () const
 return the index of this feature within the list of features of the type. More...
 
size_t GetIndex () const
 return the index of this feature within the list of features of the type. More...
 
size_t GetOffset () const
 Return the file offset within the feature value buffer for the value of this feature. More...
 
const TypeInfoGetType () const
 Return a pointer back tot he type we are assigned to. More...
 

Detailed Description

An instantiation of a feature for a certain type.

Constructor & Destructor Documentation

◆ FeatureInstance() [1/2]

osmscout::FeatureInstance::FeatureInstance ( )

Just to make the compiler happy :-/.

◆ FeatureInstance() [2/2]

osmscout::FeatureInstance::FeatureInstance ( const FeatureRef feature,
const TypeInfo type,
size_t  featureBit,
size_t  index,
size_t  offset 
)

Member Function Documentation

◆ GetFeature()

◆ GetFeatureBit()

size_t osmscout::FeatureInstance::GetFeatureBit ( ) const
inline

◆ GetIndex()

◆ GetOffset()

size_t osmscout::FeatureInstance::GetOffset ( ) const
inline

Return the file offset within the feature value buffer for the value of this feature.

◆ GetType()

const TypeInfo* osmscout::FeatureInstance::GetType ( ) const
inline

Return a pointer back tot he type we are assigned to.

Referenced by osmscout::LanesFeature::Parse(), and osmscout::AccessFeature::Parse().


The documentation for this class was generated from the following files: