Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "Iterable.h"
- #include "SmartObject.h"
- class SmartArray:public Iterable,public SmartObject
- {
- protected:
- void Allocate(unsigned int) throw(Iterable::UnneededAllocation);
- public:
- class Callback
- {
- public:
- virtual void operator ()(SmartObject::Reference&,unsigned int) const = 0;
- };
- SmartArray(void);
- SmartArray( const SmartArray& );
- ~SmartArray(void);
- SmartArray& ForEach( const Callback& );
- SmartArray& Append( SmartObject* );
- SmartArray& Append( SmartObject::Reference& );
- SmartArray& Insert( SmartObject*, int );
- SmartArray& Prepend( SmartObject* );
- const SmartArray operator [] ( const Slice& );
- private:
- SmartObject::Reference* mItems;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement