Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
74d44e25
Commit
74d44e25
authored
May 15, 2012
by
Christof Pieloth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[STYLE][DOC] Correct style and doc.
parent
b59a73a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
src/core/common/WItemSelection.cpp
src/core/common/WItemSelection.cpp
+1
-1
src/core/common/WItemSelection.h
src/core/common/WItemSelection.h
+2
-0
src/core/common/WItemSelectionItem.h
src/core/common/WItemSelectionItem.h
+2
-0
src/core/common/WItemSelectionItemTyped.h
src/core/common/WItemSelectionItemTyped.h
+7
-0
No files found.
src/core/common/WItemSelection.cpp
View file @
74d44e25
...
...
@@ -107,6 +107,6 @@ void WItemSelection::addItem( std::string name, std::string description, const c
void
WItemSelection
::
addItem
(
boost
::
shared_ptr
<
WItemSelectionItem
>
item
)
{
push_back
(
item
);
push_back
(
item
);
}
src/core/common/WItemSelection.h
View file @
74d44e25
...
...
@@ -135,6 +135,8 @@ public:
/**
* Method to add a new item, which can be derived from WItemSelectionItem.
*
* \param item WItemSelectionItem or derivation which should be add.
*/
void
addItem
(
boost
::
shared_ptr
<
WItemSelectionItem
>
item
);
...
...
src/core/common/WItemSelectionItem.h
View file @
74d44e25
...
...
@@ -70,6 +70,8 @@ public:
/**
* Dynamic cast of the object, if a derivative of WItemSelectionItem was add to WItemSelection.
*
* \return Returns the converted item of new type T or 0 if a conversion is not possible.
*/
template
<
typename
T
>
T
*
getAs
()
{
...
...
src/core/common/WItemSelectionItemTyped.h
View file @
74d44e25
...
...
@@ -58,6 +58,8 @@ public:
/**
* Returns the value.
*
* \return Value which is stored.
*/
T
getValue
()
const
{
...
...
@@ -66,6 +68,8 @@ public:
/**
* Sets a new value, which is associated with this item.
*
* \param value new value which should be stored by this item.
*/
void
setValue
(
T
value
)
{
...
...
@@ -73,6 +77,9 @@ public:
}
private:
/**
* Value which is stored by this item.
*/
T
m_value
;
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment