dca_interface  6.3.4
base_groups.h
Go to the documentation of this file.
1 /* IBM Source Code */
2 /* (C) Copyright IBM Corp. 2009, 2012 */
3 /* Licensed Materials - Property of IBM */
4 /* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5 
6 #ifndef BASE_GROUPS_H
7 #define BASE_GROUPS_H
8 
21 namespace dca {
22 
23  class groups_p;
24 
25  class Group;
26 
33  class Groups
34  {
35  public:
37  Groups();
38  Groups( const Groups& grp );
39  Groups& operator = ( const Groups& grp );
40  virtual ~Groups();
42 
49  Group at( DCA_INDEX_TYPE index ) const;
50 
58 
61 
68 
70  PRIVATE_PTR groups_p *_p;
71  };
72 
73 }
74 
75 #endif
int DCA_GROUP_ID_TYPE
Type for group ids.
Definition: base_types.h:36
Definition of a container class for Group objects.
Definition: base_groups.h:34
Group operator[](DCA_INDEX_TYPE index) const
Access to a group with the given index.
DCA_SIZE_TYPE size() const
The number of items in the container.
size_t DCA_INDEX_TYPE
Type for index access (used for arrays and collections).
Definition: base_types.h:66
Group byId(DCA_GROUP_ID_TYPE id) const
Returns the group with the given group id.
size_t DCA_SIZE_TYPE
Type for size (used for size of array and collections).
Definition: base_types.h:72
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Definition: base_types.h:83
Encapsulates a group as defined in the related categories XML schema (see Categories XML: Groups).
Definition: base_group.h:26
Group at(DCA_INDEX_TYPE index) const
Access to a group with the given index.