Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
1bbab104
Commit
1bbab104
authored
1 month ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Prepare ParticleDescriptor interfaces to estimate size in memory
parent
06e86cc3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/Commons.h
+35
-0
35 additions, 0 deletions
src/include/Commons.h
with
35 additions
and
0 deletions
src/include/Commons.h
+
35
−
0
View file @
1bbab104
...
...
@@ -452,6 +452,18 @@ public:
*/
std
::
string
get_descriptor_type
()
override
{
return
"cluster descriptor"
;
}
/*! \brief Function to calculate the descriptor size in bytes.
*
* \param gconf: `GeometryConfiguration *` Pointer to a GeometryConfiguration instance.
* \param gconf: `ScattererConfiguration *` Pointer to a ScattererConfiguration instance.
* \param li: `int` Maximum expansion order for internal fields (optional, default from `gconf`).
* \param le: `int` Maximum expansion order for external fields (optional, default from `gconf`).
* \return size: `long` The descriptor size in bytes.
*/
static
long
get_size
(
GeometryConfiguration
*
gconf
,
ScattererConfiguration
*
sconf
,
int
li
=-
1
,
int
le
=-
1
)
{
return
0
;
}
/*! \brief Update the field expansion orders.
*
* \param inner_order: `int` The new inner expansion order to be set.
...
...
@@ -502,6 +514,18 @@ public:
*/
std
::
string
get_descriptor_type
()
override
{
return
"inclusion descriptor"
;
}
/*! \brief Function to calculate the descriptor size in bytes.
*
* \param gconf: `GeometryConfiguration *` Pointer to a GeometryConfiguration instance.
* \param gconf: `ScattererConfiguration *` Pointer to a ScattererConfiguration instance.
* \param li: `int` Maximum expansion order for internal fields (optional, default from `gconf`).
* \param le: `int` Maximum expansion order for external fields (optional, default from `gconf`).
* \return size: `long` The descriptor size in bytes.
*/
static
long
get_size
(
GeometryConfiguration
*
gconf
,
ScattererConfiguration
*
sconf
,
int
li
=-
1
,
int
le
=-
1
)
{
return
0
;
}
/*! \brief Update the field expansion orders.
*
* \param inner_order: `int` The new inner expansion order to be set.
...
...
@@ -552,6 +576,17 @@ public:
*/
std
::
string
get_descriptor_type
()
override
{
return
"sphere descriptor"
;
}
/*! \brief Function to calculate the descriptor size in bytes.
*
* \param gconf: `GeometryConfiguration *` Pointer to a GeometryConfiguration instance.
* \param gconf: `ScattererConfiguration *` Pointer to a ScattererConfiguration instance.
* \param lm: `int` Maximum field expansion order (optional, default from `gconf`).
* \return size: `long` The descriptor size in bytes.
*/
static
long
get_size
(
GeometryConfiguration
*
gconf
,
ScattererConfiguration
*
sconf
,
int
lm
=-
1
)
{
return
0
;
}
/*! \brief Update the field expansion order.
*
* \param order: `int` The new field expansion order to be set.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment