Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

baljsn::EncoderTestSequenceWithAllCategories Class Reference

#include <baljsn_encoder_testtypes.h>

List of all members.

Public Types

enum  {
  ATTRIBUTE_ID_CHAR_ARRAY = 0, ATTRIBUTE_ID_ARRAY = 1, ATTRIBUTE_ID_CHOICE = 2, ATTRIBUTE_ID_CUSTOMIZED_TYPE = 3,
  ATTRIBUTE_ID_ENUMERATION = 4, ATTRIBUTE_ID_NULLABLE_VALUE = 5, ATTRIBUTE_ID_SEQUENCE = 6, ATTRIBUTE_ID_SIMPLE = 7
}
enum  { NUM_ATTRIBUTES = 8 }
enum  {
  ATTRIBUTE_INDEX_CHAR_ARRAY = 0, ATTRIBUTE_INDEX_ARRAY = 1, ATTRIBUTE_INDEX_CHOICE = 2, ATTRIBUTE_INDEX_CUSTOMIZED_TYPE = 3,
  ATTRIBUTE_INDEX_ENUMERATION = 4, ATTRIBUTE_INDEX_NULLABLE_VALUE = 5, ATTRIBUTE_INDEX_SEQUENCE = 6, ATTRIBUTE_INDEX_SIMPLE = 7
}

Public Member Functions

 EncoderTestSequenceWithAllCategories (bslma::Allocator *basicAllocator=0)
 EncoderTestSequenceWithAllCategories (const EncoderTestSequenceWithAllCategories &original, bslma::Allocator *basicAllocator=0)
 ~EncoderTestSequenceWithAllCategories ()
EncoderTestSequenceWithAllCategoriesoperator= (const EncoderTestSequenceWithAllCategories &rhs)
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< char > & charArray ()
bsl::vector< int > & array ()
EncoderTestSequenceWithAllCategoriesChoicechoice ()
EncoderTestSequenceWithAllCategoriesCustomizedTypecustomizedType ()
EncoderTestSequenceWithAllCategoriesEnumeration::Valueenumeration ()
bdlb::NullableValue< int > & nullableValue ()
EncoderTestSequenceWithAllCategoriesSequencesequence ()
int & simple ()
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< char > & charArray () const
const bsl::vector< int > & array () const
const
EncoderTestSequenceWithAllCategoriesChoice
choice () const
const
EncoderTestSequenceWithAllCategoriesCustomizedType
customizedType () const
EncoderTestSequenceWithAllCategoriesEnumeration::Value enumeration () const
const bdlb::NullableValue< int > & nullableValue () const
const
EncoderTestSequenceWithAllCategoriesSequence
sequence () const
int simple () 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
Enumerator:
ATTRIBUTE_ID_CHAR_ARRAY 
ATTRIBUTE_ID_ARRAY 
ATTRIBUTE_ID_CHOICE 
ATTRIBUTE_ID_CUSTOMIZED_TYPE 
ATTRIBUTE_ID_ENUMERATION 
ATTRIBUTE_ID_NULLABLE_VALUE 
ATTRIBUTE_ID_SEQUENCE 
ATTRIBUTE_ID_SIMPLE 
anonymous enum
Enumerator:
NUM_ATTRIBUTES 
anonymous enum
Enumerator:
ATTRIBUTE_INDEX_CHAR_ARRAY 
ATTRIBUTE_INDEX_ARRAY 
ATTRIBUTE_INDEX_CHOICE 
ATTRIBUTE_INDEX_CUSTOMIZED_TYPE 
ATTRIBUTE_INDEX_ENUMERATION 
ATTRIBUTE_INDEX_NULLABLE_VALUE 
ATTRIBUTE_INDEX_SEQUENCE 
ATTRIBUTE_INDEX_SIMPLE 

Constructor & Destructor Documentation

baljsn::EncoderTestSequenceWithAllCategories::EncoderTestSequenceWithAllCategories ( bslma::Allocator basicAllocator = 0  )  [explicit]

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

baljsn::EncoderTestSequenceWithAllCategories::EncoderTestSequenceWithAllCategories ( const EncoderTestSequenceWithAllCategories original,
bslma::Allocator basicAllocator = 0 
)

Create an object of type EncoderTestSequenceWithAllCategories 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.

baljsn::EncoderTestSequenceWithAllCategories::~EncoderTestSequenceWithAllCategories (  ) 

Destroy this object.


Member Function Documentation

static const bdlat_AttributeInfo* baljsn::EncoderTestSequenceWithAllCategories::lookupAttributeInfo ( int  id  )  [static]

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

static const bdlat_AttributeInfo* baljsn::EncoderTestSequenceWithAllCategories::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.

EncoderTestSequenceWithAllCategories& baljsn::EncoderTestSequenceWithAllCategories::operator= ( const EncoderTestSequenceWithAllCategories rhs  ) 

Assign to this object the value of the specified rhs object.

void baljsn::EncoderTestSequenceWithAllCategories::reset (  ) 

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

template<class MANIPULATOR >
int baljsn::EncoderTestSequenceWithAllCategories::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).

template<class MANIPULATOR >
int baljsn::EncoderTestSequenceWithAllCategories::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.

template<class MANIPULATOR >
int baljsn::EncoderTestSequenceWithAllCategories::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.

bsl::vector<char>& baljsn::EncoderTestSequenceWithAllCategories::charArray (  ) 

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

bsl::vector<int>& baljsn::EncoderTestSequenceWithAllCategories::array (  ) 

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

EncoderTestSequenceWithAllCategoriesChoice& baljsn::EncoderTestSequenceWithAllCategories::choice (  ) 

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

EncoderTestSequenceWithAllCategoriesCustomizedType& baljsn::EncoderTestSequenceWithAllCategories::customizedType (  ) 

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

EncoderTestSequenceWithAllCategoriesEnumeration::Value& baljsn::EncoderTestSequenceWithAllCategories::enumeration (  ) 

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

bdlb::NullableValue<int>& baljsn::EncoderTestSequenceWithAllCategories::nullableValue (  ) 

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

EncoderTestSequenceWithAllCategoriesSequence& baljsn::EncoderTestSequenceWithAllCategories::sequence (  ) 

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

int& baljsn::EncoderTestSequenceWithAllCategories::simple (  ) 

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

bsl::ostream& baljsn::EncoderTestSequenceWithAllCategories::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.

template<class ACCESSOR >
int baljsn::EncoderTestSequenceWithAllCategories::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).

template<class ACCESSOR >
int baljsn::EncoderTestSequenceWithAllCategories::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.

template<class ACCESSOR >
int baljsn::EncoderTestSequenceWithAllCategories::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.

const bsl::vector<char>& baljsn::EncoderTestSequenceWithAllCategories::charArray (  )  const

Return a reference to the non-modifiable "CharArray" attribute of this object.

const bsl::vector<int>& baljsn::EncoderTestSequenceWithAllCategories::array (  )  const

Return a reference to the non-modifiable "Array" attribute of this object.

const EncoderTestSequenceWithAllCategoriesChoice& baljsn::EncoderTestSequenceWithAllCategories::choice (  )  const

Return a reference to the non-modifiable "Choice" attribute of this object.

const EncoderTestSequenceWithAllCategoriesCustomizedType& baljsn::EncoderTestSequenceWithAllCategories::customizedType (  )  const

Return a reference to the non-modifiable "CustomizedType" attribute of this object.

EncoderTestSequenceWithAllCategoriesEnumeration::Value baljsn::EncoderTestSequenceWithAllCategories::enumeration (  )  const

Return a reference to the non-modifiable "Enumeration" attribute of this object.

const bdlb::NullableValue<int>& baljsn::EncoderTestSequenceWithAllCategories::nullableValue (  )  const

Return a reference to the non-modifiable "NullableValue" attribute of this object.

const EncoderTestSequenceWithAllCategoriesSequence& baljsn::EncoderTestSequenceWithAllCategories::sequence (  )  const

Return a reference to the non-modifiable "Sequence" attribute of this object.

int baljsn::EncoderTestSequenceWithAllCategories::simple (  )  const

Return a reference to the non-modifiable "Simple" attribute of this object.


Member Data Documentation


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