OpenStructure
Public Member Functions | Protected Member Functions
ConstGenericPropContainer< H > Class Template Reference

#include <generic_property.hh>

Inherited by GenericPropContainer< SequenceHandle >, GenericPropContainer< BondHandle >, GenericPropContainer< EntityBase >, GenericPropContainer< ChainBase >, GenericPropContainer< AtomBase >, GenericPropContainer< ResidueBase >, and GenericPropContainer< H >.

Public Member Functions

bool HasProp (const String &key) const
 
String GetPropAsString (const String &key) const
 
String GetStringProp (const String &key) const
 
Real GetFloatProp (const String &key) const
 
int GetIntProp (const String &key) const
 
bool GetBoolProp (const String &key) const
 
geom::Vec3 GetVec3Prop (const String &key) const
 
String GetStringProp (const String &key, const String &def) const
 
Real GetFloatProp (const String &key, Real def) const
 
int GetIntProp (const String &key, int def) const
 
bool GetBoolProp (const String &key, bool def) const
 
std::map< String, GenericPropValueGetPropMap () const
 
std::vector< StringGetPropList () const
 

Protected Member Functions

template<typename T >
gp_get (const String &key) const
 
template<typename T >
gp_get (const String &key, const T &def) const
 
GenericPropContainerImplGetImpl ()
 
const GenericPropContainerImplGetImpl () const
 

Detailed Description

template<typename H>
class ost::ConstGenericPropContainer< H >

Definition at line 148 of file generic_property.hh.

Member Function Documentation

◆ GetBoolProp() [1/2]

bool GetBoolProp ( const String key) const
inline

returns boolean property, raises an exception if it does not exist

Definition at line 254 of file generic_property.hh.

◆ GetBoolProp() [2/2]

bool GetBoolProp ( const String key,
bool  def 
) const
inline

returns boolean property, or the given default if it does not exist

Definition at line 316 of file generic_property.hh.

◆ GetFloatProp() [1/2]

Real GetFloatProp ( const String key) const
inline

returns floating point property, raises an exception if it does not exist

Definition at line 211 of file generic_property.hh.

◆ GetFloatProp() [2/2]

Real GetFloatProp ( const String key,
Real  def 
) const
inline

returns floating point property, or the given default if it does not exist

Definition at line 276 of file generic_property.hh.

◆ GetImpl() [1/2]

GenericPropContainerImpl* GetImpl ( )
inlineprotected

Definition at line 169 of file generic_property.hh.

◆ GetImpl() [2/2]

const GenericPropContainerImpl* GetImpl ( ) const
inlineprotected

Definition at line 174 of file generic_property.hh.

◆ GetIntProp() [1/2]

int GetIntProp ( const String key) const
inline

returns integer property, raises an exception if it does not exist

Definition at line 233 of file generic_property.hh.

◆ GetIntProp() [2/2]

int GetIntProp ( const String key,
int  def 
) const
inline

returns integer property, or the given default if it does not exist

Definition at line 297 of file generic_property.hh.

◆ GetPropAsString()

String GetPropAsString ( const String key) const
inline

returns a String representation of stored value

returns the String representation of this property, or the empty String if the property addressed by key does not exist. Note that this is not the same as trying to get a generic float/int/bool property as a String type; the latter will result in a boost:get exception. Use this method to obtain a representation suitable for output.

Definition at line 193 of file generic_property.hh.

◆ GetPropList()

std::vector<String> GetPropList ( ) const
inline

Definition at line 328 of file generic_property.hh.

◆ GetPropMap()

std::map<String,GenericPropValue> GetPropMap ( ) const
inline

Definition at line 322 of file generic_property.hh.

◆ GetStringProp() [1/2]

String GetStringProp ( const String key) const
inline

returns String property, raises an exception if it does not exist

Definition at line 203 of file generic_property.hh.

◆ GetStringProp() [2/2]

String GetStringProp ( const String key,
const String def 
) const
inline

returns String property, or the given default if it does not exist

Definition at line 268 of file generic_property.hh.

◆ GetVec3Prop()

geom::Vec3 GetVec3Prop ( const String key) const
inline

returns Vec3 property, raises an exception if it does not exist

Definition at line 261 of file generic_property.hh.

◆ gp_get() [1/2]

T gp_get ( const String key) const
inlineprotected

Definition at line 152 of file generic_property.hh.

◆ gp_get() [2/2]

T gp_get ( const String key,
const T &  def 
) const
inlineprotected

Definition at line 163 of file generic_property.hh.

◆ HasProp()

bool HasProp ( const String key) const
inline

checks existence of property

Definition at line 181 of file generic_property.hh.


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