Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_data
Commits
8ac02bf2
Commit
8ac02bf2
authored
Jun 30, 2017
by
incardon
Browse files
Added documentation
parent
dbfb2ecf
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/NN/CellList/CellListFast.hpp
View file @
8ac02bf2
...
...
@@ -688,6 +688,8 @@ public:
}
/*! \brief Get an iterator over particles following the cell structure
*
* \param vector containing the id of the domain cells
*
* \return a particle iterator
*
...
...
src/Packer_Unpacker/Packer_util.hpp
View file @
8ac02bf2
...
...
@@ -18,10 +18,7 @@
template
<
typename
T
,
typename
Mem
,
int
pack_type
=
Pack_selector
<
T
>
::
value
>
class
Packer
;
template
<
typename
T
,
typename
Mem
,
int
pack_type
=
Pack_selector
<
T
>
::
value
>
class
Unpacker
;
namespace
openfpm
{
template
<
typename
T
,
typename
Memory
=
HeapMemory
,
typename
layout
=
typename
memory_traits_lin
<
T
>
::
type
,
template
<
typename
>
class
layout_base
=
memory_traits_lin
,
typename
grow_p
=
grow_policy_double
,
unsigned
int
impl
=
vect_isel
<
T
>::
value
>
class
vector
;
}
#include "Vector/vector_def.hpp"
///////////////////////////////////////////////////////////////////////////////////
//////////////////////////////// FUNCTORS FOR ENCAP ////////////////////////////////
...
...
src/Vector/map_vector_std_util.hpp
View file @
8ac02bf2
...
...
@@ -10,18 +10,45 @@
#include "util/common.hpp"
/*! \brief pack/add function selector
*
* This in case of error
*
*/
template
<
bool
,
typename
T
,
typename
S
>
struct
push_back_op_neste
{
static
inline
void
push_back
(
/*std::vector<T> & base, const S & obj*/
)
/*! \brief push_back
*
* Print an error
*
* \param base vector where to push_back
* \param obj object to push
*
*/
static
inline
void
push_back
(
std
::
vector
<
T
>
&
base
,
const
S
&
obj
)
{
std
::
cerr
<<
__FILE__
<<
":"
<<
__LINE__
<<
" error cannot push "
<<
demangle
(
typeid
(
S
).
name
())
<<
" into a vector of "
<<
demangle
(
typeid
(
T
).
name
())
<<
std
::
endl
;
}
};
/*! \brief pack/add function selector
*
* This in case normally add an object
*
*/
template
<
typename
T
,
typename
S
>
struct
push_back_op_neste
<
true
,
T
,
S
>
{
/*! \brief Push_back on a vector
*
* Push on a vector an object
*
* \param base vector where to push_back
* \param obj object to push
*
*/
static
inline
void
push_back
(
std
::
vector
<
T
>
&
base
,
const
S
&
obj
)
{
base
.
push_back
(
T
());
...
...
@@ -29,10 +56,24 @@ struct push_back_op_neste<true,T,S>
}
};
/*! \brief pack/add function selector
*
* In case of error
*
*/
template
<
bool
,
typename
T
,
typename
S
>
struct
push_back_std_op_neste
{
static
inline
void
push_back
(
/*std::vector<T> & base, const S & obj*/
)
/*! \brief push_back
*
* Print an error
*
* \param base vector where to push_back
* \param obj object to push
*
*/
static
inline
void
push_back
(
std
::
vector
<
T
>
&
base
,
const
S
&
obj
)
{
std
::
cerr
<<
__FILE__
<<
":"
<<
__LINE__
<<
" error cannot push "
<<
demangle
(
typeid
(
S
).
name
())
<<
" into a vector of "
<<
demangle
(
typeid
(
T
).
name
())
<<
std
::
endl
;
}
...
...
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