fce4895d18
- Add subfolder src/kits/debugger which contains the debugger's core functionality and lower layers. Correspondingly add headers/private/debugger for shared headers to be used by clients such as the Debugger application and eventual remote_debug_server. Adjust various files to account for differences as a result of the split and moves. - Add libdebugger.so to minimal Jamfile.
70 lines
1.7 KiB
C++
70 lines
1.7 KiB
C++
/*
|
|
* Copyright 2012-2015, Rene Gollent, rene@gollent.com.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef BLIST_VALUE_NODE_H
|
|
#define BLIST_VALUE_NODE_H
|
|
|
|
|
|
#include <List.h>
|
|
#include <Variant.h>
|
|
|
|
#include <ObjectList.h>
|
|
|
|
#include "ValueLocation.h"
|
|
#include "ValueNode.h"
|
|
|
|
|
|
class CompoundType;
|
|
|
|
|
|
class BListValueNode : public ValueNode {
|
|
public:
|
|
BListValueNode(ValueNodeChild* nodeChild,
|
|
Type* type);
|
|
virtual ~BListValueNode();
|
|
|
|
virtual Type* GetType() const;
|
|
virtual status_t ResolvedLocationAndValue(
|
|
ValueLoader* valueLoader,
|
|
ValueLocation*& _location,
|
|
Value*& _value);
|
|
|
|
virtual bool ChildCreationNeedsValue() const
|
|
{ return true; }
|
|
virtual status_t CreateChildren(TeamTypeInformation* info);
|
|
virtual int32 CountChildren() const;
|
|
virtual ValueNodeChild* ChildAt(int32 index) const;
|
|
|
|
virtual bool IsRangedContainer() const;
|
|
virtual bool IsContainerRangeFixed() const;
|
|
virtual void ClearChildren();
|
|
virtual status_t CreateChildrenInRange(
|
|
TeamTypeInformation* info,
|
|
int32 lowIndex, int32 highIndex);
|
|
virtual status_t SupportedChildRange(int32& lowIndex,
|
|
int32& highIndex) const;
|
|
private:
|
|
class BListElementNodeChild;
|
|
class BListItemCountNodeChild;
|
|
|
|
// for GCC2
|
|
friend class BListElementNodeChild;
|
|
friend class BListItemCountNodeChild;
|
|
|
|
typedef BObjectList<ValueNodeChild> ChildNodeList;
|
|
|
|
private:
|
|
|
|
Type* fType;
|
|
ChildNodeList fChildren;
|
|
BVariant fDataLocation;
|
|
BVariant fItemCountLocation;
|
|
Type* fItemCountType;
|
|
int32 fItemCount;
|
|
bool fCountChildCreated;
|
|
};
|
|
|
|
|
|
#endif // BLIST_VALUE_NODE_H
|