Storage::Disk::MBR::PartitionTable Class Reference
#include <MBR.h>
Inheritance diagram for Storage::Disk::MBR::PartitionTable:
Collaboration diagram for Storage::Disk::MBR::PartitionTable:
Public Member Functions | |
| bool | add (SysType sysType, SysIndicator sysIndicator, storage_size_t offset, storage_size_t size) |
| Add a new MBR partition definition. More... | |
Public Member Functions inherited from OwnedLinkedObjectListTemplate< ObjectType > | |
| OwnedLinkedObjectListTemplate ()=default | |
| OwnedLinkedObjectListTemplate (const OwnedLinkedObjectListTemplate &other)=delete | |
| OwnedLinkedObjectListTemplate & | operator= (const OwnedLinkedObjectListTemplate &other)=delete |
| ~OwnedLinkedObjectListTemplate () | |
| bool | remove (ObjectType *object) |
| void | clear () |
Public Member Functions inherited from LinkedObjectListTemplate< ObjectType > | |
| LinkedObjectListTemplate ()=default | |
| LinkedObjectListTemplate (ObjectType *object) | |
| ObjectType * | head () |
| const ObjectType * | head () const |
| Iterator | begin () |
| Iterator | end () |
| ConstIterator | begin () const |
| ConstIterator | end () const |
| bool | add (ObjectType *object) |
| bool | add (const ObjectType *object) |
| bool | insert (ObjectType *object) |
| bool | insert (const ObjectType *object) |
| ObjectType * | pop () |
| size_t | count () const |
| bool | contains (const ObjectType &object) const |
Public Member Functions inherited from LinkedObjectList | |
| LinkedObjectList ()=default | |
| LinkedObjectList (LinkedObject *object) | |
| bool | add (LinkedObject *object) |
| bool | add (const LinkedObject *object) |
| bool | insert (LinkedObject *object) |
| bool | insert (const LinkedObject *object) |
| bool | remove (LinkedObject *object) |
| LinkedObject * | pop () |
| void | clear () |
| LinkedObject * | head () |
| const LinkedObject * | head () const |
| bool | isEmpty () const |
Additional Inherited Members | |
Public Types inherited from LinkedObjectListTemplate< ObjectType > | |
| using | Iterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< ObjectType, ObjectType *, ObjectType & > |
| using | ConstIterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< const ObjectType, const ObjectType *, const ObjectType & > |
Protected Attributes inherited from LinkedObjectList | |
| LinkedObject * | mHead {nullptr} |
Member Function Documentation
◆ add()
|
inline |
Add a new MBR partition definition.
- Parameters
-
sysType Intended content for this partition (or 'unknown') SysIndicator Appropriate system code SI_xxx offset Start offset, or 0 to have position calculated size Size of partition (in bytes), or percentage (0-100) of total partitionable disk space
- Return values
-
bool true on success
- Note
- MBR does not have partition name field; this will appear as 'mbr1', 'mbr2', etc.
The documentation for this class was generated from the following file:
Public Member Functions inherited from
1.9.1