summaryrefslogtreecommitdiff
path: root/src/context/cdlist.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-07-08 04:33:10 +0000
committerMorgan Deters <mdeters@gmail.com>2010-07-08 04:33:10 +0000
commit8a0dcb9cb4bbf83f03b31343eaa6437ae829f1c9 (patch)
treebd25ae92f252eaaea317f543e515ccdbbfc57f05 /src/context/cdlist.h
parent586c8f2d51d790942fd82598a2bf532f2b5ebc9a (diff)
context work to support cdmaps with elements allocated in context memory
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r--src/context/cdlist.h25
1 files changed, 18 insertions, 7 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h
index e3bf4d56b..7e382697c 100644
--- a/src/context/cdlist.h
+++ b/src/context/cdlist.h
@@ -130,13 +130,24 @@ public:
/**
* Main constructor: d_list starts as NULL, size is 0
*/
- CDList(Context* context, bool callDestructor = true) :
- ContextObj(context),
- d_list(NULL),
- d_callDestructor(callDestructor),
- d_size(0),
- d_sizeAlloc(0) {
- }
+ CDList(Context* context, bool callDestructor = true) :
+ ContextObj(context),
+ d_list(NULL),
+ d_callDestructor(callDestructor),
+ d_size(0),
+ d_sizeAlloc(0) {
+ }
+
+ /**
+ * Main constructor: d_list starts as NULL, size is 0
+ */
+ CDList(bool allocatedInCMM, Context* context, bool callDestructor = true) :
+ ContextObj(allocatedInCMM, context),
+ d_list(NULL),
+ d_callDestructor(callDestructor),
+ d_size(0),
+ d_sizeAlloc(0) {
+ }
/**
* Destructor: delete the list
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback