Class
FileMappingA structure to memory-map a file.
A structure to memory-map a file.
| Defined in | <seqan/file.h> |
|---|---|
| Signature |
template <[typename TSpec]>
struct FileMapping;
|
Template Parameters
TSpec |
The specializing type. Default: void. |
|---|
Interface Function Overview
-
bool adviseFileSegment(fileMapping, advise, addr, fileOfs, size);
Give advise about use of a memory-mapped file segment. -
bool cancelFileSegment(fileMapping, addr, beginPos, size);
Cancel all outstanding transactions of a memory-mapped file segment. -
bool close(fileMapping);
Close a file and its memory mapping. -
bool closeAndResize(fileMapping, newFileSize);
Close a memory mapping and resize and close the underlying file. -
bool flushFileSegment(fileMapping, addr, beginPos, size);
Wait for all outstanding transactions of a memory-mapped file segment. -
TSize length(fileMapping);
Return the file size of a memory mapping. -
TPtr mapFileSegment(fileMapping, fileOfs[, size[, mode]]);
Map a segment of a file into memory. -
bool open(fileMapping, fileName[, openMode]);
Open a file to be mapped into memory. -
bool openTemp(fileMapping);
Open a temporary file to be mapped into memory. -
TPtr remapFileSegment(fileMapping, oldAddr, oldFileOfs, oldSize, newSize);
Change the size of a memory-mapped file segment. -
bool resize(fileMapping, newFileSize);
Resize the underlying file. -
bool unmappedFileSegment(fileMapping, addr, size);
Unmap a memory-mapped file segment.
Interface Metafunction Overview
-
Size<TFileMapping>::Type;
Return the size type of the FileMapping.
Detailed Description
This structure represents both a file and its memory mapping.
Interface Functions Detail
bool adviseFileSegment(fileMapping, advise, addr, fileOfs, size);
Give advise about use of a memory-mapped file segment.
Parameters
fileMapping
|
The FileMapping object to adsive segment in. |
|---|---|
advise
|
The advise type. Type: FileMappingAdvise. |
addr
|
A pointer t othe beginning of the memory-mapped segment in memory (returned by a prior call of mapFileSegment). |
fileOfs
|
The absolute start address of the segment in bytes. |
size
|
The segment length in bytes. |
Returns
bool |
true on success, false on failure. |
|---|
Remarks
This function has no effect on Windows. On all other platforms it calls posix_madvise.
Data Races
Thread safety unknown!
bool cancelFileSegment(fileMapping, addr, beginPos, size);
Cancel all outstanding transactions of a memory-mapped file segment.
Parameters
fileMapping
|
The FileMapping object. |
|---|---|
addr
|
A pointer to the beginning of the memory-mapped segment in memory (returned by a prior call of FileMapping#mapFileSegment). |
beginPos
|
the absolute start address of the segment in bytes. |
size
|
The segment length in bytes. |
Returns
bool |
true on success, false on failure. |
|---|
Data Races
Thread safety unknown!
bool close(fileMapping);
Close a file and its memory mapping.
Parameters
fileMapping
|
The FileMapping to close |
|---|
Returns
bool |
true on success, false otherwise. |
|---|
Data Races
Thread safety unknown!
bool closeAndResize(fileMapping, newFileSize);
Close a memory mapping and resize and close the underlying file.
Parameters
fileMapping
|
The FileMapping to close. |
|---|---|
newFileSize
|
The size the file should have after closing. |
Returns
bool |
true indicating success, false failure. |
|---|
Data Races
Thread safety unknown!
bool flushFileSegment(fileMapping, addr, beginPos, size);
Wait for all outstanding transactions of a memory-mapped file segment.
Parameters
fileMapping
|
A FileMapping object. |
|---|---|
addr
|
A pointer to the beginning of memory-mapped segment in memory (returned by a prior call of mapFileSegment. |
beginPos
|
The absolute start address of the segment in bytes. |
size
|
The segment length in bytes. |
Returns
bool |
true on success, false on failure. |
|---|
Remarks
This function has no effect under Windows. On all other platforms it calls msync. This function is only needed to synchronize file accesses in non-shared-memory environments.
Data Races
Thread safety unknown!
TSize length(fileMapping);
Return the file size of a memory mapping.
Parameters
fileMapping
|
The FileMapping to return the length for. |
|---|
Returns
TSize |
The file size (Metafunction: Size). |
|---|
Data Races
Thread safety unknown!
TPtr mapFileSegment(fileMapping, fileOfs[, size[, mode]]);
Map a segment of a file into memory.
Parameters
fileMapping
|
A FileMapping object. |
|---|---|
fileOfs
|
The absolute start address of the segment in bytes. |
size
|
The segment length in bytes. |
mode
|
The mapping access mode. Default rread/write open mode of the underlying file. Type: FileMappingMode. |
Returns
TPtr |
A pointer to the beginning of the memory-mapped segment in memory or NULL on error. TPtr is void *. |
|---|
Data Races
Thread safety unknown!
bool open(fileMapping, fileName[, openMode]);
Open a file to be mapped into memory.
Parameters
fileMapping
|
The FileMapping to open. |
|---|---|
fileName
|
The path to the fie. |
openMode
|
The mode to open the file in, flags from FileOpenMode to combine using OR. Write-only mode is not supported, use OPEN_RDWR if you need write access. If you omit the OPEN_APPEND flag in write mode, the file will be cleared when opened. Default: OPEN_RDWR | OPEN_CREATE | OPEN_APPEND. |
Returns
bool |
true if the opening was successful, false otherwise. |
|---|
Data Races
Thread safety unknown!
bool openTemp(fileMapping);
Open a temporary file to be mapped into memory.
Parameters
fileMapping
|
The FileMapping to open using a temporary file. |
|---|
Returns
bool |
true on success, false otherwise. |
|---|
Data Races
Thread safety unknown!
TPtr remapFileSegment(fileMapping, oldAddr, oldFileOfs, oldSize, newSize);
Change the size of a memory-mapped file segment.
Parameters
fileMapping
|
The FileMapping object. |
|---|---|
oldAddr
|
The address returned by mapFileSegment. |
oldFileOfs
|
The fileOfs parameter used in mapFileSegment. |
oldSize
|
The size parameter used in mapFileSegment. |
newSize
|
the new segment length in bytes. |
Returns
TPtr |
A pointer to the beginning of the memory-mapped segment in memory or NULL on error. Type: void*. |
|---|
Data Races
Thread safety unknown!
bool resize(fileMapping, newFileSize);
Resize the underlying file.
Parameters
fileMapping
|
The FileMapping to resize. |
|---|---|
newFileSize
|
The new file size to set. |
Returns
bool |
true on success, false otherwise. |
|---|
Remarks
On Windows, all existing file mappings must be unmapped via unmapFileSegment before claling this function.
Data Races
Thread safety unknown!
bool unmappedFileSegment(fileMapping, addr, size);
Unmap a memory-mapped file segment.
Parameters
fileMapping
|
A FileMapping object. |
|---|---|
addr
|
The pointer to the beginning of the memory-mapped segment in memory. Type: void*. |
size
|
The segment length in bytes. |
Returns
bool |
true on success, false on failure. |
|---|
Data Races
Thread safety unknown!


{{ bbTableData.info }}
Showing only the first 50 rows
| {{ k }} |
|---|
| {{ v }} |
BB-Insights comes with a Node-RED instance that is connected to your metadata warehouse. You can create SQL queries, pull in external data sources, and use JavaScript functions to analyze your data and prepare it for visualization.
After you have created your flow in Node-RED, turn it into a data source for BB-Insights. Use the HTTP node to create an endpoint, connect your query to the HTTP node, and give it any URL and name you like.
Before creating your queries, you can inspect the schema of the metadata warehouse below.
The following list shows all your endpoints from Node-RED. Select the one you want to use for this analysis.
BB-Insights uses Bokeh and BokehJS to visualize your data. You can now choose which type of visualization you want to use.
Each type supports different data structures. All data from Node-RED has to come in tables or matrixes, the different visualization types support different amounts of rows and columns.
Table
raw results
Line graph
* rows, 1 column
Bar graph
* rows, 1 column
Bar graph - log scale
* rows, 1 column
Multiple bar graphs
* rows, * column
Stacked bar graph
* rows, * column
Box plot
* rows, * column
Area graph
* rows, * column


Neural net separation
Posted: 2017-02-09 , Modified: 2017-02-09
Tags: neural nets, circuit complexity
Posted: 2017-02-09 , Modified: 2017-02-09
Tags: neural nets, circuit complexity
Notes (See section 2.)
One idea:
Cf. CSS16.
Idea: write out everything as power series. Perhaps fix a probability measure such as Gaussian.
The circuit model is \(\sum P \sum P...\) where \(P\) is any univariate power series. We hope that it can be approximated by its first few terms, so that we get a polynomial.
Restrict the \(k+1\)-depth circuits to be somewhat smooth, so they can be approximated by the first few terms of the power series.
We can find pairs of functions which differ very much on the first few terms of their power series but that are arbitrarily close on \(L^2(\mu)\).
The natural thing to do is to look at families of orthogonal polynomials on \(\mu\). But these
Can we require our approximating function to also be somewhat smooth? Then e.g. we can use compactness (Arzela-Ascoli) - arbitrarily close approximation means expressible, otherwise you can’t get closer than \(\ep\). But \(\ep\) might depend on \(n\)… (Ex. with certain bounds on coefficients, and a requirement that your power series starts with \(p(x)\), what is the minimial \(L^2(\mu)\) norm it has?)
Order of quantifiers?
The circuit model is \(\sum P \sum P...\) where \(P\) is any univariate power series/polynomial. Find a polynomial that is attainable by the degree \(\le d\) portion of a depth \(k+1\) circuit (depth \(k+1\) means \(\sum (P\sum)^{k}\)) that is not attainable by the degree \(\le d\) portion of any depth \(k\) circuit of subexponential size.
What are separation results for normal arithmetic circuits?
Look at constant-depth circuits: keep \(k\) fixed; you’re allowed to take \(n\to \iy\).


Cory Booker: 'I Have Hope' That I Will Marry Rosario Dawson
Democrat presidential hopeful Sen. Cory Booker (D-NJ) joined Wendy Williams on The Wendy Williams Show Monday where he was pressed on his relationship and whether he would marry girlfriend Rosario Dawson.
by Kyle Morris“Will you marry her,” Williams asked Booker.
“Look, I have hope, I have hope,” Booker responded, as he described his girlfriend as a “righteous activist.”
Booker also discussed with Williams his encounter with Dawson when she gave him her phone number:
So I have a lot of confidence in a lot of areas, but I tell you, I did not feel confident when I asked for her phone number. I walked up to her, it was the end of the party, we had already talked a bit and people were drifting out, but she and I were lingering.
He continued, “I walked up to her and I said, ‘Well, how would I contact you if I wanted to get in touch with you?’, and she goes, ‘Oh, you’re asking for my phone number.'”
“This was a shy moment for me,” Booker admitted. He also claimed Rosario “was merciful in getting her phone number.”
In an October conversation with Cosmopolitan, Booker discussed his “cozy” relationship with Dawson and claimed she keeps him “grounded.”
“She keeps me grounded,” Booker said of Dawson at the time. “She doesn’t let me take myself too seriously. She thinks I’m really corny, but she thinks it’s really adorable. But we just definitely have personalities I think that resonate like a symphony and not a cacophony, so I feel very, very lucky.”
Follow Kyle on Twitter @RealKyleMorris and Facebook.


{{ partial "partials/head.html" . }}
{{ partial "partials/header.html" . }}
Contact
powered by
Typeform
{{ partial "partials/footer.html" . }}


Santa Clara University Homepage
Health Advisory Alert: Novel Coronavirus
Latest information on the Wuhan Novel Coronavirus outbreak.
Top Stories
-
A Potent Brew: Haiti, Vodou, and the U.S. Marines
SCU bioengineering major Bridget Woody '20, delves into brutal history of imperialism in Haiti that offers lessons for today.
-
InsideSCU: What is Silicon Valley’s Path Forward with Affordable Housing?
A panel of experts discusses how Santa Clara University collaborates with Silicon Valley to help address the affordable housing crisis in Episode 3 of our web series.
-
A Hacker’s Code
Assistant professors Shiva Houshmand and Sukanya Manna teamed up with the Markkula Center to give computer science classes an ethical framework.
-
Marquette University Jesuit Rector, Theologian, to Lead Jesuit School of Theology of Santa Clara University
Joseph Mueller, S.J., announced as dean of Jesuit School of Theology.
-
Reflections on Rev. Dr. Martin Luther King Jr.
In honor of the Martin Luther King Jr. Day of National Service, Santa Clara University students, staff, and faculty share insights on the life and legacy of the civil rights leader.