BDE 4.14.0 Production release
Loading...
Searching...
No Matches
s_baltst::Sequence3 Class Reference

#include <s_baltst_ratsnest.h>

Public Types

enum  {
  ATTRIBUTE_ID_ELEMENT1 = 0 , ATTRIBUTE_ID_ELEMENT2 = 1 , ATTRIBUTE_ID_ELEMENT3 = 2 , ATTRIBUTE_ID_ELEMENT4 = 3 ,
  ATTRIBUTE_ID_ELEMENT5 = 4 , ATTRIBUTE_ID_ELEMENT6 = 5
}
 
enum  { NUM_ATTRIBUTES = 6 }
 
enum  {
  ATTRIBUTE_INDEX_ELEMENT1 = 0 , ATTRIBUTE_INDEX_ELEMENT2 = 1 , ATTRIBUTE_INDEX_ELEMENT3 = 2 , ATTRIBUTE_INDEX_ELEMENT4 = 3 ,
  ATTRIBUTE_INDEX_ELEMENT5 = 4 , ATTRIBUTE_INDEX_ELEMENT6 = 5
}
 

Public Member Functions

 Sequence3 (bslma::Allocator *basicAllocator=0)
 
 Sequence3 (const Sequence3 &original, bslma::Allocator *basicAllocator=0)
 
 ~Sequence3 ()
 Destroy this object.
 
Sequence3operator= (const Sequence3 &rhs)
 Assign to this object the value of the specified rhs object.
 
void reset ()
 
template<class MANIPULATOR >
int manipulateAttributes (MANIPULATOR &manipulator)
 
template<class MANIPULATOR >
int manipulateAttribute (MANIPULATOR &manipulator, int id)
 
template<class MANIPULATOR >
int manipulateAttribute (MANIPULATOR &manipulator, const char *name, int nameLength)
 
bsl::vector< s_baltst::Enumerated::Value > & element1 ()
 
bsl::vector< bsl::string > & element2 ()
 
bdlb::NullableValue< bool > & element3 ()
 
bdlb::NullableValue< bsl::string > & element4 ()
 
bdlb::NullableAllocatedValue< Sequence5 > & element5 ()
 
bsl::vector< bdlb::NullableValue< s_baltst::Enumerated::Value > > & element6 ()
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
template<class ACCESSOR >
int accessAttributes (ACCESSOR &accessor) const
 
template<class ACCESSOR >
int accessAttribute (ACCESSOR &accessor, int id) const
 
template<class ACCESSOR >
int accessAttribute (ACCESSOR &accessor, const char *name, int nameLength) const
 
const bsl::vector< s_baltst::Enumerated::Value > & element1 () const
 
const bsl::vector< bsl::string > & element2 () const
 
const bdlb::NullableValue< bool > & element3 () const
 
const bdlb::NullableValue< bsl::string > & element4 () const
 
const bdlb::NullableAllocatedValue< Sequence5 > & element5 () const
 
const bsl::vector< bdlb::NullableValue< s_baltst::Enumerated::Value > > & element6 () const
 

Static Public Member Functions

static const bdlat_AttributeInfolookupAttributeInfo (int id)
 
static const bdlat_AttributeInfolookupAttributeInfo (const char *name, int nameLength)
 

Static Public Attributes

static const char CLASS_NAME []
 
static const bdlat_AttributeInfo ATTRIBUTE_INFO_ARRAY []
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ATTRIBUTE_ID_ELEMENT1 
ATTRIBUTE_ID_ELEMENT2 
ATTRIBUTE_ID_ELEMENT3 
ATTRIBUTE_ID_ELEMENT4 
ATTRIBUTE_ID_ELEMENT5 
ATTRIBUTE_ID_ELEMENT6 

◆ anonymous enum

anonymous enum
Enumerator
NUM_ATTRIBUTES 

◆ anonymous enum

anonymous enum
Enumerator
ATTRIBUTE_INDEX_ELEMENT1 
ATTRIBUTE_INDEX_ELEMENT2 
ATTRIBUTE_INDEX_ELEMENT3 
ATTRIBUTE_INDEX_ELEMENT4 
ATTRIBUTE_INDEX_ELEMENT5 
ATTRIBUTE_INDEX_ELEMENT6 

Constructor & Destructor Documentation

◆ Sequence3() [1/2]

s_baltst::Sequence3::Sequence3 ( bslma::Allocator basicAllocator = 0)
explicit

Create an object of type Sequence3 having the default value. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

◆ Sequence3() [2/2]

s_baltst::Sequence3::Sequence3 ( const Sequence3 original,
bslma::Allocator basicAllocator = 0 
)

Create an object of type Sequence3 having the value of the specified original object. Use the optionally specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

◆ ~Sequence3()

s_baltst::Sequence3::~Sequence3 ( )

Member Function Documentation

◆ accessAttribute() [1/2]

template<class ACCESSOR >
int s_baltst::Sequence3::accessAttribute ( ACCESSOR &  accessor,
const char *  name,
int  nameLength 
) const

Invoke the specified accessor on the (non-modifiable) attribute of this object indicated by the specified name of the specified nameLength, supplying accessor with the corresponding attribute information structure. Return the value returned from the invocation of accessor if name identifies an attribute of this class, and -1 otherwise.

◆ accessAttribute() [2/2]

template<class ACCESSOR >
int s_baltst::Sequence3::accessAttribute ( ACCESSOR &  accessor,
int  id 
) const

Invoke the specified accessor on the (non-modifiable) attribute of this object indicated by the specified id, supplying accessor with the corresponding attribute information structure. Return the value returned from the invocation of accessor if id identifies an attribute of this class, and -1 otherwise.

◆ accessAttributes()

template<class ACCESSOR >
int s_baltst::Sequence3::accessAttributes ( ACCESSOR &  accessor) const

Invoke the specified accessor sequentially on each (non-modifiable) attribute of this object, supplying accessor with the corresponding attribute information structure until such invocation returns a non-zero value. Return the value from the last invocation of accessor (i.e., the invocation that terminated the sequence).

◆ element1() [1/2]

bsl::vector< s_baltst::Enumerated::Value > & s_baltst::Sequence3::element1 ( )
inline

Return a reference to the modifiable "Element1" attribute of this object.

◆ element1() [2/2]

const bsl::vector< s_baltst::Enumerated::Value > & s_baltst::Sequence3::element1 ( ) const
inline

Return a reference offering non-modifiable access to the "Element1" attribute of this object.

◆ element2() [1/2]

bsl::vector< bsl::string > & s_baltst::Sequence3::element2 ( )
inline

Return a reference to the modifiable "Element2" attribute of this object.

◆ element2() [2/2]

const bsl::vector< bsl::string > & s_baltst::Sequence3::element2 ( ) const
inline

Return a reference offering non-modifiable access to the "Element2" attribute of this object.

◆ element3() [1/2]

bdlb::NullableValue< bool > & s_baltst::Sequence3::element3 ( )
inline

Return a reference to the modifiable "Element3" attribute of this object.

◆ element3() [2/2]

const bdlb::NullableValue< bool > & s_baltst::Sequence3::element3 ( ) const
inline

Return a reference offering non-modifiable access to the "Element3" attribute of this object.

◆ element4() [1/2]

bdlb::NullableValue< bsl::string > & s_baltst::Sequence3::element4 ( )
inline

Return a reference to the modifiable "Element4" attribute of this object.

◆ element4() [2/2]

const bdlb::NullableValue< bsl::string > & s_baltst::Sequence3::element4 ( ) const
inline

Return a reference offering non-modifiable access to the "Element4" attribute of this object.

◆ element5() [1/2]

bdlb::NullableAllocatedValue< Sequence5 > & s_baltst::Sequence3::element5 ( )
inline

Return a reference to the modifiable "Element5" attribute of this object.

◆ element5() [2/2]

const bdlb::NullableAllocatedValue< Sequence5 > & s_baltst::Sequence3::element5 ( ) const
inline

Return a reference offering non-modifiable access to the "Element5" attribute of this object.

◆ element6() [1/2]

bsl::vector< bdlb::NullableValue< s_baltst::Enumerated::Value > > & s_baltst::Sequence3::element6 ( )
inline

Return a reference to the modifiable "Element6" attribute of this object.

◆ element6() [2/2]

const bsl::vector< bdlb::NullableValue< s_baltst::Enumerated::Value > > & s_baltst::Sequence3::element6 ( ) const
inline

Return a reference offering non-modifiable access to the "Element6" attribute of this object.

◆ lookupAttributeInfo() [1/2]

static const bdlat_AttributeInfo * s_baltst::Sequence3::lookupAttributeInfo ( const char *  name,
int  nameLength 
)
static

Return attribute information for the attribute indicated by the specified name of the specified nameLength if the attribute exists, and 0 otherwise.

◆ lookupAttributeInfo() [2/2]

static const bdlat_AttributeInfo * s_baltst::Sequence3::lookupAttributeInfo ( int  id)
static

Return attribute information for the attribute indicated by the specified id if the attribute exists, and 0 otherwise.

◆ manipulateAttribute() [1/2]

template<class MANIPULATOR >
int s_baltst::Sequence3::manipulateAttribute ( MANIPULATOR &  manipulator,
const char *  name,
int  nameLength 
)

Invoke the specified manipulator on the address of the (modifiable) attribute indicated by the specified name of the specified nameLength, supplying manipulator with the corresponding attribute information structure. Return the value returned from the invocation of manipulator if name identifies an attribute of this class, and -1 otherwise.

◆ manipulateAttribute() [2/2]

template<class MANIPULATOR >
int s_baltst::Sequence3::manipulateAttribute ( MANIPULATOR &  manipulator,
int  id 
)

Invoke the specified manipulator on the address of the (modifiable) attribute indicated by the specified id, supplying manipulator with the corresponding attribute information structure. Return the value returned from the invocation of manipulator if id identifies an attribute of this class, and -1 otherwise.

◆ manipulateAttributes()

template<class MANIPULATOR >
int s_baltst::Sequence3::manipulateAttributes ( MANIPULATOR &  manipulator)

Invoke the specified manipulator sequentially on the address of each (modifiable) attribute of this object, supplying manipulator with the corresponding attribute information structure until such invocation returns a non-zero value. Return the value from the last invocation of manipulator (i.e., the invocation that terminated the sequence).

◆ operator=()

Sequence3 & s_baltst::Sequence3::operator= ( const Sequence3 rhs)

◆ print()

bsl::ostream & s_baltst::Sequence3::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

Format this object to the specified output stream at the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. Each line is indented by the absolute value of level * spacesPerLevel. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, suppress line breaks and format the entire output on one line. If stream is initially invalid, this operation has no effect. Note that a trailing newline is provided in multiline mode only.

◆ reset()

void s_baltst::Sequence3::reset ( )

Reset this object to the default value (i.e., its value upon default construction).

Member Data Documentation

◆ ATTRIBUTE_INFO_ARRAY

const bdlat_AttributeInfo s_baltst::Sequence3::ATTRIBUTE_INFO_ARRAY[]
static

◆ CLASS_NAME

const char s_baltst::Sequence3::CLASS_NAME[]
static

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